/*=============================================================================== 
 * SQLHelper.cs
 * author:csyingwu
 * 
 * 
 * 
 */
//============================================================================

using System;
using System.Configuration;
using System.Data.SqlClient;

namespace Kaidou.Util
{
    /// <summary>
    /// DBConnection 
    /// </summary>

    public sealed class DBConnection
    {
        //Database connection strings
        private static readonly string ConnectionString = ConfigurationManager.ConnectionStrings["SQLConnString"].ToString();
        #region Class DBConnection Constructor
        /// <summary>
        /// Default Constructor
		/// </summary>
		private DBConnection()
		{
        }
		#endregion

		/// <summary>
		/// Get Database connection 
		/// </summary>
        public static SqlConnection CreateInstance()
        {   
            // 
            return new SqlConnection(ConnectionString);
        }
    }
}
